how to modify array values in json